package com.uniview.entity.vo;

import java.util.List;

/**
 * 
 * @author 消息输出类
 *
 */
public class ResultMessage {
	
	private boolean success;   // 是否成功
	
	private String message;  //提示消息
	
	private List<?> list; // 输出的数据集合
	 
	private Integer total;  // 总记录数
	
	private Object obj;  //输出的数据对象
	
	private Integer code;
	
	private Integer count;
	
	private List<?> data;
	
	public ResultMessage(String message ,boolean success){
		this.success = success;
		this.message = message;
	}
	
	public ResultMessage(String message ,boolean success,Object obj){
		this.success = success;
		this.message = message;
		this.obj = obj;
	}
	
	public ResultMessage(String message ,boolean success,List<?> list,Integer total){
		this.success = success;
		this.message = message;
		this.list = list;
		this.total = total;
	}
	
	public ResultMessage(boolean success,List<?> list,Integer total,Integer code){
		this.success = success;
		this.data = list;
		this.count = total;
		this.code = code;
	}
	
	public ResultMessage(String message ,boolean success,List<?> list,Object obj){
		this.success = success;
		this.message = message;
		this.list = list;
		this.obj = obj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Object getData() {
		return obj;
	}

	public void setData(Object obj) {
		this.obj = obj;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public void setData(List<?> data) {
		this.data = data;
	}
}
